package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysZxCategoryMapper;
import com.ruoyi.system.domain.SysZxCategory;
import com.ruoyi.system.service.ISysZxCategoryService;

/**
 * 资讯分类维护Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-04-03
 */
@Service
public class SysZxCategoryServiceImpl implements ISysZxCategoryService 
{
    @Autowired
    private SysZxCategoryMapper sysZxCategoryMapper;

    /**
     * 查询资讯分类维护
     * 
     * @param zxCategoryId 资讯分类维护主键
     * @return 资讯分类维护
     */
    @Override
    public SysZxCategory selectSysZxCategoryByZxCategoryId(Long zxCategoryId)
    {
        return sysZxCategoryMapper.selectSysZxCategoryByZxCategoryId(zxCategoryId);
    }

    /**
     * 查询资讯分类维护列表
     * 
     * @param sysZxCategory 资讯分类维护
     * @return 资讯分类维护
     */
    @Override
    public List<SysZxCategory> selectSysZxCategoryList(SysZxCategory sysZxCategory)
    {
        return sysZxCategoryMapper.selectSysZxCategoryList(sysZxCategory);
    }

    /**
     * 新增资讯分类维护
     * 
     * @param sysZxCategory 资讯分类维护
     * @return 结果
     */
    @Override
    public int insertSysZxCategory(SysZxCategory sysZxCategory)
    {
        return sysZxCategoryMapper.insertSysZxCategory(sysZxCategory);
    }

    /**
     * 修改资讯分类维护
     * 
     * @param sysZxCategory 资讯分类维护
     * @return 结果
     */
    @Override
    public int updateSysZxCategory(SysZxCategory sysZxCategory)
    {
        return sysZxCategoryMapper.updateSysZxCategory(sysZxCategory);
    }

    /**
     * 批量删除资讯分类维护
     * 
     * @param zxCategoryIds 需要删除的资讯分类维护主键
     * @return 结果
     */
    @Override
    public int deleteSysZxCategoryByZxCategoryIds(Long[] zxCategoryIds)
    {
        return sysZxCategoryMapper.deleteSysZxCategoryByZxCategoryIds(zxCategoryIds);
    }

    /**
     * 删除资讯分类维护信息
     * 
     * @param zxCategoryId 资讯分类维护主键
     * @return 结果
     */
    @Override
    public int deleteSysZxCategoryByZxCategoryId(Long zxCategoryId)
    {
        return sysZxCategoryMapper.deleteSysZxCategoryByZxCategoryId(zxCategoryId);
    }
}
